Other Classes
The following classes are available globally.
-
GenericRouteShield
is a class to render routes that do not have route-shields.Declaration
Swift
public class GenericRouteShield: StylableView
-
See moreMapboxVoiceController
extends the defaultRouteVoiceController
by providing a more robust speech synthesizer via the Mapbox Speech API.RouteVoiceController
will be used as a fallback during poor network conditions.Declaration
Swift
open class MapboxVoiceController: RouteVoiceController
-
NavigationLocationManager
is the base location manager which handles permissions and background modes.Declaration
Swift
open class NavigationLocationManager: CLLocationManager
-
A
NavigationRouteOptions
object specifies turn-by-turn-optimized criteria for results returned by the Mapbox Directions API.
See moreNavigationRouteOptions
is a subclass ofRouteOptions
that has been optimized for navigation. Pass an instance of this class into theDirections.calculate(_:completionHandler:)
method.Declaration
Swift
open class NavigationRouteOptions: RouteOptions
-
A
NavigationMatchOptions
object specifies turn-by-turn-optimized criteria for results returned by the Mapbox Map Matching API.NavigationMatchOptions
is a subclass ofMatchOptions
that has been optimized for navigation. Pass an instance of this class into theDirections.calculateRoutes(matching:completionHandler:).
method.Note: it is very important you specify the
See morewaypoints
for the route. Usually the only two values for thisIndexSet
will be 0 and the length of the coordinates. Otherwise, all coordinates passed through will be considered waypoints.Declaration
Swift
open class NavigationMatchOptions: MatchOptions
-
NavigationSettings
provides a wrapper for UserDefaults.Properties are prefixed and before they are stored in UserDefaults.standard.
See moreDeclaration
Swift
public class NavigationSettings: NSObject
-
A view that represents the root view of the MapboxNavigation drop-in UI.
Components
- InstructionsBannerView
- InformationStackView
- BottomBannerView
- ResumeButton
- WayNameLabel
- FloatingStackView
- NavigationMapView
+--------------------+ | 1 | +--------------------+ | 2 | +----------------+---+ | | | | | 6 | | | | | 7 +---+ | | | | | | +------------+ | | 4 || 5 | | +------------+-------+ | 3 | +--------------------+
Declaration
Swift
open class NavigationView: UIView
-
See moreReplayLocationManager
replays an array of locations exactly as they were recorded with the single exception of the location’s timestamp which will be adjusted by interval between locations.Declaration
Swift
open class ReplayLocationManager: NavigationLocationManager
-
The
SimulatedLocationManager
class simulates location updates along a given route.The route will be replaced upon a
See moreRouteControllerDidReroute
notification.Declaration
Swift
open class SimulatedLocationManager: NavigationLocationManager
-
:nodoc
Declaration
Swift
open class StylableView: UIView
-
A view representing the user’s location on screen.
See moreDeclaration
Swift
public class UserPuckCourseView: UIView, UserCourseView